<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/demo/employsregistered/employsregistered.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/demo/employsregistered/employsregistered.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'EmploysRegId',
            footer: "Foots",
            cnName: '员工登记',
            name: 'employsregistered/employsregistered',
            url: "/personnel-write/api/employsregistered/",
            sortName: "CreateTime"
        });
        const editFormFields = ref({ "EmploysName": "", "EmploysSex": "", "EmploysPhone": "", "EmploysSchool": "", "Professional": "", "Address": "", "Degree": "", "PoliticalOutlook": "", "Rthnic": "", "Origin": "", "Marriage": "", "Birthday": "", "Email": "", "IdCard": "", "DepartName": "", "PositionName": "", "EmploysGrade": "" });
        const editFormOptions = ref([[{ "title": "姓名", "required": true, "field": "EmploysName", "type": "text" },
        { "dataKey": "性别单选框", "data": [], "title": "性别", "required": true, "field": "EmploysSex", "type": "radio" }],
        [{ "title": "手机号", "required": true, "field": "EmploysPhone", "type": "text" },
        { "title": "院校", "required": true, "field": "EmploysSchool", "type": "text" }],
        [{ "title": "专业", "required": true, "field": "Professional", "type": "text" },
        { "title": "家庭住址", "required": true, "field": "Address", "type": "text" }],
        [{ "dataKey": "学历下拉框", "data": [], "title": "学历", "required": true, "field": "Degree", "type": "select" },
        { "title": "政治面貌", "required": true, "field": "PoliticalOutlook", "type": "text" }],
        [{ "title": "民族", "required": true, "field": "Rthnic", "type": "text" },
        { "title": "籍贯", "required": true, "field": "Origin", "type": "text" }],
        [{ "dataKey": "婚姻状态下拉框", "data": [], "title": "婚姻状态", "required": true, "field": "Marriage", "type": "select" },
        { "title": "出生年月", "required": true, "field": "Birthday", "type": "date" }],
        [{ "title": "邮箱", "required": true, "field": "Email", "type": "text" },
        { "title": "身份证号", "required": true, "field": "IdCard", "type": "text" }],
        [{ "dataKey": "部门下拉框", "data": [], "title": "部门", "required": true, "field": "DepartName", "type": "select" },
        { "dataKey": "职位下拉框", "data": [], "title": "职位", "required": true, "field": "PositionName", "type": "select" }],
        [{ "dataKey": "员工级别下拉框", "data": [], "title": "员工级别", "required": true, "field": "EmploysGrade", "type": "select" }]]);
        const searchFormFields = ref({ "EmploysName": "", "EmploysPhone": "", "DepartName": "", "PositionName": "", "EmploysGrade": "" });
        const searchFormOptions = ref([[{ "title": "姓名", "field": "EmploysName", "type": "text" }, { "dataKey": "部门下拉框", "data": [], "title": "部门", "field": "DepartName", "type": "select" }, { "dataKey": "职位下拉框", "data": [], "title": "职位", "field": "PositionName", "type": "select" }], [{ "title": "手机号", "field": "EmploysPhone", "type": "text" }, { "dataKey": "员工级别下拉框", "data": [], "title": "员工级别", "field": "EmploysGrade", "type": "select" }]]);
        const columns = ref([{ field: 'EmploysRegId', title: '主键', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'EmploysName', title: '姓名', type: 'string', width: 110, require: true, align: 'left', sort: true },
        { field: 'EmploysSex', title: '性别', type: 'int', bind: { key: '性别单选框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'EmploysPhone', title: '手机号', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'EmploysSchool', title: '院校', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Professional', title: '专业', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Address', title: '家庭住址', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Degree', title: '学历', type: 'int', bind: { key: '学历下拉框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'PoliticalOutlook', title: '政治面貌', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Rthnic', title: '民族', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Origin', title: '籍贯', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'Marriage', title: '婚姻状态', type: 'int', bind: { key: '婚姻状态下拉框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'Birthday', title: '出生年月', type: 'datetime', width: 150, require: true, align: 'left', sort: true },
        { field: 'Email', title: '邮箱', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'IdCard', title: '身份证号', type: 'string', width: 110, require: true, align: 'left' },
        { field: 'DepartName', title: '部门', type: 'string', bind: { key: '部门下拉框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'PositionName', title: '职位', type: 'string', bind: { key: '职位下拉框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'EmploysGrade', title: '员工级别', type: 'int', bind: { key: '员工级别下拉框', data: [] }, width: 110, require: true, align: 'left' },
        { field: 'OnboardingDate', title: '入职时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'EmploysType', title: '状态', type: 'int', bind: { key: '入职状态下拉框', data: [] }, width: 110, align: 'left' },
        { field: 'CreateName', title: '创建人', type: 'string', width: 110, align: 'left' },
        { field: 'CreateTime', title: '创建时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'UpdateName', title: '修改人', type: 'string', width: 110, hidden: true, align: 'left' },
        { field: 'UpdateTime', title: '修改时间', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true },
        { field: 'IsDel', title: '逻辑删除', type: 'int', width: 110, hidden: true, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
